
function plotData(x, y)

figure; % open a new figure window
plot(x,y,'rx','MarkerSize', 10);
xlabel('Year');
ylabel('Price');
end
